<!-- 类似于 el-space -->
<template>
  <div class="space">
    <slot></slot>
  </div>
</template>

<script>
export default {
  name: "Space",
  props: {
    size: {
      type: [String, Number],
      default: "10px"
    }
  }
};
</script>

<style lang="scss" scoped>
.space {
  display: flex;
  flex-wrap: wrap;
  gap: v-bind(size);
  & > * {
    white-space: nowrap;
  }
}
</style>
